//package com.luojing.springcloud.MQ;/**
// * Created by luojing on 2017/6/6.
// */
//
//import org.springframework.amqp.core.AmqpTemplate;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.stereotype.Component;
//
//import java.util.Date;
//
///**
// * @author
// * @create 2017-06-06 16:39
// **/
//@Component
//public class SenderFanout {
//
//    @Autowired
//    private AmqpTemplate rabbitTemplate;
//
//    public void send() {
//        String context = "hello fanout" + new Date();
//        System.out.println("Sender : " + context);
//        this.rabbitTemplate.convertAndSend("fanoutExchange","", context);
//    }
//
//}
